package com.cuit.dashboard.brand.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * stock
 * @author
 */
@Data
@TableName("stock")
public class Stock implements Serializable {

    /**
     * 库存id
     */
    @TableField("id")
    @TableId
    private Long id;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Integer warehouseId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 库存数量
     */
    @TableField("num")
    private Integer num;

    /**
     * 供应商名
     */
    @TableField("supplier")
    private String supplier;

    /**
     * 供应商电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 进货单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    @TableLogic
    @TableField("is_deleted")
    private Byte isDeleted;

    private static final long serialVersionUID = 1L;
}
